package monopoly;


import java.awt.Dimension;
import java.io.IOException;


public class intro{
        public static void main() throws IOException {
                // if turn = 0 then its your turn

                System.out.println("Welcome to Monopoly");
                System.out.println("You will be playing against 1 computer");
                System.out.println("You start out with 1500 dollars");
                System.out.println("You roll to see who goes first");
                System.out.println("Press the enter key to proceed through the game");
                System.in.read();
                do {
                        vars.dice = dice.dice_roll(vars.dice);
                        vars.dice2 = dice.dice_roll(vars.dice);
                        System.out.println("Computer rolls a " + vars.dice
                                        + ". You roll a " + vars.dice2 + ";");
                        if (vars.dice > vars.dice2) {
                                System.out.println("Computer goes first");
                                vars.turn = 1;
                                vars.finished = 1;
                        } else if (vars.dice2 > vars.dice) {
                                System.out.println("You go first");
                                vars.turn = 0;
                                vars.finished = 1;
                        } else {
                                System.out.println("You roll again");
                        }
                        System.in.read();
                } while (vars.finished == 0);
                vars.finished = 0;
        }
}